// 导入request工具
import request from '@/utils/request'

// 新增留言接口
export const addMessageService = (content) => {
  return request.post('/user/messages/add', null, {
    params: {
      content: content
    }
  })
}

// 获取留言列表接口
export const messageListService = (page, pageSize) => {
  return request.get(`/user/messages/page?page=${page}&pageSize=${pageSize}`)
}